package com.qidian.mes.machine.mapper;
import com.qidian.mes.pojo.Ledger;
import com.qidian.mes.pojo.WorkShop;

import java.util.List;

/**
 * @Author 任超
 * Time 2024/10/17 13:39
 */
public interface MachineLedgerMapper {

    List<Ledger> selectList(Ledger ledger);

    int addLedger(Ledger ledger);

    Ledger selectByCode(String machineCode);

    int updateLedger(Ledger ledger);

    Ledger selectById(Long machineId);

    int updateLedgerStatus(Long machineId);

    List<Ledger> selectByDelete(int status);

    int updateByDelete(Long machineId);

    List<WorkShop> selectWorkshop(Long workshopId);

}
